package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookImgsDao;
import io.wdb.modules.generator.generator.entity.BookImgsEntity;
import io.wdb.modules.generator.generator.service.BookImgsService;



@Service("bookImgsService")
public class BookImgsServiceImpl implements BookImgsService {
	@Autowired
	private BookImgsDao bookImgsDao;
	
	@Override
	public BookImgsEntity queryObject(Long id){
		return bookImgsDao.queryObject(id);
	}
	
	@Override
	public List<BookImgsEntity> queryList(Map<String, Object> map){
		return bookImgsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookImgsDao.queryTotal(map);
	}
	
	@Override
	public void save(BookImgsEntity bookImgs){
		bookImgsDao.save(bookImgs);
	}
	
	@Override
	public void update(BookImgsEntity bookImgs){
		bookImgsDao.update(bookImgs);
	}
	
	@Override
	public void delete(Long id){
		bookImgsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		bookImgsDao.deleteBatch(ids);
	}
	
}
